﻿// ============================================================================
//  _ __   ___  ___  ___ _ __ ___  _   _
// | '_ \ / _ \/ __|/ _ \ '_ ` _ \| | | |
// | | | |  __/\__ \  __/ | | | | | |_| |
// |_| |_|\___||___/\___|_| |_| |_|\__,_|
//
// NES Emulator by daxnet, 2023
// MIT License
// ============================================================================

namespace NesEmu.Snake
{
    public partial class FrmDisassembler : Form
    {
        #region Private Fields

        private readonly string? _code;

        #endregion Private Fields

        #region Public Constructors

        public FrmDisassembler()
        {
            InitializeComponent();
        }

        public FrmDisassembler(string code)
            : this()
        {
            _code = code;
        }

        #endregion Public Constructors

        #region Protected Methods

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            txtDisassembler.Text = _code;
            txtDisassembler.SelectionStart = 0;
        }

        #endregion Protected Methods
    }
}